 const merge = require('webpack-merge');
 const common = require('./webpack.common.js');

 module.exports = merge(common, {
   mode: 'development',
   devtool: 'inline-source-map',
   devServer: {
       contentBase: './dist',
       port:9000,
       proxy: {
           '/oauth/*':{
               target: 'http://localhost:8999',
               changeOrigin: true,
               secure: false,
               pathRewrite: {
                   '^/oauth':''
               }
           },

           '/api/*': {
               target: 'http://localhost:8999',
               changeOrigin: true,
               secure: false,
               pathRewrite: {
                   '^/api':''
               }
           },
           '/chunks/*': {
               target: 'http://192.168.101.117:8099/',
               changeOrigin: true,
               secure: false
           },
           '/file/*': {
               target: 'http://192.168.101.117:8099/',
               changeOrigin: true,
               secure: false
           },
       }
   }
 });